text/template/parse.item.typ (field)
36 uses
text/template/parse (current package)
lex.go#L16: typ itemType // The type of this item.
lex.go#L24: case i.typ == itemEOF:
lex.go#L26: case i.typ == itemError:
lex.go#L28: case i.typ > itemKeyword:
parse.go#L131: if token.typ != itemSpace {
parse.go#L192: if token.typ != expected {
parse.go#L201: if token.typ != expected1 && token.typ != expected2 {
parse.go#L209: if token.typ == itemError {
parse.go#L327: for t.peek().typ != itemEOF {
parse.go#L328: if t.peek().typ == itemLeftDelim {
parse.go#L330: if t.nextNonSpace().typ == itemDefine {
parse.go#L380: for t.peekNonSpace().typ != itemEOF {
parse.go#L396: switch token := t.nextNonSpace(); token.typ {
parse.go#L423: switch token := t.nextNonSpace(); token.typ {
parse.go#L455: if token := t.nextNonSpace(); token.typ != itemRightDelim {
parse.go#L470: if token := t.nextNonSpace(); token.typ != itemRightDelim {
parse.go#L487: if v := t.peekNonSpace(); v.typ == itemVariable {
parse.go#L496: case next.typ == itemAssign, next.typ == itemDeclare:
parse.go#L497: pipe.IsAssign = next.typ == itemAssign
parse.go#L501: case next.typ == itemChar && next.val == ",":
parse.go#L506: switch t.peekNonSpace().typ {
parse.go#L515: case tokenAfterVariable.typ == itemSpace:
parse.go#L522: switch token := t.nextNonSpace(); token.typ {
parse.go#L576: if context == "if" && t.peek().typ == itemIf {
parse.go#L580: } else if context == "with" && t.peek().typ == itemWith {
parse.go#L644: if peek.typ == itemIf || peek.typ == itemWith {
parse.go#L694: if t.nextNonSpace().typ != itemRightDelim {
parse.go#L703: switch token.typ {
parse.go#L730: switch token := t.next(); token.typ {
parse.go#L760: if t.peek().typ == itemField {
parse.go#L762: for t.peek().typ == itemField {
parse.go#L796: switch token := t.nextNonSpace(); token.typ {
parse.go#L814: number, err := t.newNumber(token.pos, token.val, token.typ)
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)